<?php
/**
 * | ---------------------------------------------------------------------------------------------------
 * | Author：johnxu <fsyzxz@163.com>.
 * | ---------------------------------------------------------------------------------------------------
 * | Home: https://www.johnxu.net.
 * | ---------------------------------------------------------------------------------------------------
 * | Data: 2019-03-17
 * | ---------------------------------------------------------------------------------------------------
 * | Desc: 常用语管理
 * | ---------------------------------------------------------------------------------------------------
 */

namespace app\admin\model;

use think\Model;

class CommonLanguage extends Model
{
    protected $name = 'common_language';

    /**
     * 获取常用语列表
     *
     * @param array $where
     *
     * @return array|\PDOStatement|string|\think\Collection
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\ModelNotFoundException
     * @throws \think\exception\DbException
     */
    public static function getList( array $where = [ 'status' => 'normal' ] )
    {
        return parent::where( $where )->select();
    }
}